package com.rajeshDyadav.spring.ioc.example01;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainClass {
    public static void main(String[] args) {
	ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext("com/rajeshDyadav/spring/ioc/example01/hello.xml");
	HelloBean helloBean = (HelloBean) appContext.getBean("helloBean");
	Name name = new Name();
	name.setFirstName("Rajesh");
	name.setMiddleName("D.");
	name.setLastName("Yadav");
	System.out.println(helloBean.wishMe(name));
    }
}
